package com.qfdu.aspect;

import org.aspectj.lang.ProceedingJoinPoint;


//切面类：增强类
public class MyAspect {

    public void  before(){

        System.out.println("目标方法执行之前执行");
    }
    public void  afterReturning(){
        System.out.println("目标执行之后执行");
    }
    public void around(ProceedingJoinPoint proceedingJoinPoint){

        System.out.println("环绕之前");
        try {
            proceedingJoinPoint.proceed();
        } catch (Throwable throwable) {
            throwable.printStackTrace();
        }
        System.out.println("环绕之后");


    }
}
